package com.example.service;

import com.example.entity.SchInformation;
import com.example.mapper.SchInformationRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecommendationService {
    @Autowired
    private SchInformationRepository schInformationRepository;

    public List<SchInformation> recommendSchools(String schClass, String schoolProject) {
        return schInformationRepository.findByClassAndProject(schClass, schoolProject);
    }
}

